package com.rayenterprise.kms.client.remote;
import java.util.List;


import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.rayenterprise.kms.domain.KGenre;

@RemoteServiceRelativePath("genreService")
public interface GenreRemote extends RemoteService{
	/**
	 * Utility class for simplifing access to the instance of async service.
	 */
	public static class Util {
		private static GenreRemoteAsync instance;
		public static GenreRemoteAsync getInstance(){
			if (instance == null) {
				instance = (GenreRemoteAsync) GWT.create(GenreRemote.class);
			}
			return instance;
		}
	}
	public KGenre getGenre(int genreId);
	public List<KGenre> getGList();
	public KGenre saveGenre(KGenre genre);
	public void deleteGenre(KGenre genre);

}
